from django.db import models
from mdeditor.fields import MDTextField
import datetime

# Create your models here.

class Event(models.Model):
	date = models.DateField(default=datetime.date(2022,1,1))
	title = MDTextField()
	spe_event = models.TextField()
	event_id = models.IntegerField()
	last_edit = models.DateTimeField(auto_now=True)
	last_edit_name = models.CharField(max_length=100)
	ban = models.BooleanField(default=False)
	end_ban = models.DateTimeField(default=datetime.date(1970, 1, 1))

class BanEvent(models.Model):
	code = models.CharField(max_length=20)
	number_for_times = models.IntegerField()